#pragma once
#include "afxwin.h"
#include "RevenueAccount.h"
#include "afxcmn.h"
#include "defines.h"
#include "POSManagerDoc.h"
#include "AccountAddDlg.h"


// CPOSManagerRevenueView form view

class CPOSManagerRevenueView : public CFormView
{
	DECLARE_DYNCREATE(CPOSManagerRevenueView)

public:
	CPOSManagerRevenueView();           // protected constructor used by dynamic creation
	virtual ~CPOSManagerRevenueView();

public:
	enum { IDD = IDD_POSMANAGERREVENUEVIEW };
#ifdef _DEBUG
	virtual void AssertValid() const;
#ifndef _WIN32_WCE
	virtual void Dump(CDumpContext& dc) const;
#endif
#endif

protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support

	DECLARE_MESSAGE_MAP()
private:
	CRevenueAccount	revenue;
	CComboBox		m_comboPeriod;
	CListCtrl		m_listRevenue;
	DWORD			dwSeed;

public:
	CPOSManagerDoc* GetDocument() const;
	virtual void OnInitialUpdate();
	void IniListHeaderAndGroup(void);
	void addListCtrl(CRevenueAccount* revenue);
	void clearListCtrl(void);

	afx_msg void OnBnClickedButtonYear();
	afx_msg void OnBnClickedButtonMonth();
	afx_msg void OnBnClickedButtonWeek();
	afx_msg void OnBnClickedButtonDay();
	afx_msg void OnBnClickedBtnAddrecord();
};


